package interfaz;

import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import java.awt.LayoutManager;

import javax.swing.border.SoftBevelBorder;
import javax.swing.border.MatteBorder;
import java.awt.SystemColor;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class PanelTema extends JPanel {

	/**
	 * Create the panel.
	 */
	private PanelForo panelSuper;
	
	public PanelTema(String nombPanel) {
		
		
		/*panelSuper=new PanelForo();
		panelSuper=panelSup;
		*/
		
		setBackground(SystemColor.inactiveCaptionText);
		setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		
		JPanel panel = new JPanel();
		panel.setBounds(10, 11, 247, 24);
		final JLabel nombreTema = new JLabel(nombPanel);
		
		nombreTema.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent arg0) {
				nombreTema.setForeground(Color.orange);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				nombreTema.setForeground(Color.BLACK);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				panelSuper.actualizaPanelForo();
				
			}
		});
		setLayout(null);
		
		
		nombreTema.setFont(new Font("Tahoma", Font.PLAIN, 18));
		nombreTema.setBounds(10, 0, 237, 24);
		panel.add(nombreTema);
		panel.setBorder(null);
		panel.setBackground(SystemColor.inactiveCaptionText);
		add(panel);
		panel.setLayout(null);
		
		
		
		JPanel panel_1 = new JPanel();
		panel_1.setBounds(267, 0, 136, 52);
		panel_1.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel_1.setLayout(null);
		panel_1.setBackground(SystemColor.info);
		add(panel_1);
		
		JLabel fechaCreacion = new JLabel("Fecha Creaci\u00F3n");
		fechaCreacion.setFont(new Font("Tahoma", Font.PLAIN, 8));
		fechaCreacion.setBounds(10, 0, 77, 20);
		panel_1.add(fechaCreacion);
		
		JLabel usuarioCreador = new JLabel("Usuario");
		usuarioCreador.setFont(new Font("Tahoma", Font.PLAIN, 8));
		usuarioCreador.setBounds(10, 24, 77, 20);
		panel_1.add(usuarioCreador);
		
		JLabel lblNewLabel = new JLabel("New label");
		lblNewLabel.setBounds(56, 11, 46, 14);
		panel_1.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("New label");
		lblNewLabel_1.setBounds(41, 55, 46, 14);
		panel_1.add(lblNewLabel_1);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBounds(413, 0, 81, 52);
		panel_2.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel_2.setLayout(null);
		panel_2.setBackground(SystemColor.info);
		add(panel_2);
		
		JLabel nVisionados = new JLabel("N\u00BA visonados");
		nVisionados.setFont(new Font("Tahoma", Font.PLAIN, 8));
		nVisionados.setBounds(10, 0, 77, 23);
		panel_2.add(nVisionados);
		
		JLabel lblNewLabel_2 = new JLabel("New label");
		lblNewLabel_2.setBounds(20, 34, 46, 14);
		panel_2.add(lblNewLabel_2);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBounds(511, 0, 81, 52);
		panel_3.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel_3.setLayout(null);
		panel_3.setBackground(SystemColor.info);
		add(panel_3);
		
		JLabel lblNewLabel_3 = new JLabel("New label");
		lblNewLabel_3.setBounds(10, 34, 46, 14);
		panel_3.add(lblNewLabel_3);
		
		JLabel lblNmensajesntemas = new JLabel("nMensajes/nTemas");
		lblNmensajesntemas.setFont(new Font("Tahoma", Font.PLAIN, 8));
		lblNmensajesntemas.setBounds(0, 0, 77, 23);
		panel_3.add(lblNmensajesntemas);
		
		

	}

	public PanelForo getPanelSuper() {
		return panelSuper;
	}

	public void setPanelSuper(PanelForo panelSuper) {
		this.panelSuper = panelSuper;
	}
	
}
